<template>
<h1>测试</h1>
</template>
<script setup lang="ts">
import { ref,onMounted } from 'vue'
import { demoPostApi,demoGetApi} from "@/api/demo";
const demoGetFn = async () => {
    const res = await demoGetApi()
    console.log(res)
}
const demoPostFn = async () => {
    const res = await demoPostApi({
        userName:'test',
        phone:'123456789',
        gender:'男'
    })
    console.log(res)
}
onMounted(()=>{
    demoGetFn();
    demoPostFn();
})
</script>
<style scoped lang="scss">


</style>